import ajax from "@/utils/request";
import '@/mock/hotelmock'

export function getHotelFn() {
    return ajax(
        {
            url: '/api/getHotel',
            method: 'post'
        }
    )
}


export function searchHotelFn(data: { name: string }) {
    return ajax(
        {
            url: '/api/searchHotel',
            method: 'post',
            data
        }
    )
}